package com.yunyike.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunyike.mapper.PriceMapper;
import com.yunyike.model.Price;
import com.yunyike.service.PriceService;

@Service("priceServiceImpl")
public class PriceServiceImpl implements PriceService{

	private Logger log = LoggerFactory.getLogger(PriceServiceImpl.class);
	
	@Autowired
	private  PriceMapper priceMapper;

	public int deleteByPrimaryKey(String priceId) {
		return priceMapper.deleteByPrimaryKey(priceId);
	}

	public int insert(Price record) {
		return priceMapper.insert(record);
	}

	public int insertSelective(Price record) {
		return priceMapper.insertSelective(record);
	}

	public Price selectByPrimaryKey(String priceId) {
		return priceMapper.selectByPrimaryKey(priceId);
	}

	
	public int updateByPrimaryKeySelective(Price record) {
		return priceMapper.updateByPrimaryKeySelective(record);
	}

	
	public int updateByPrimaryKey(Price record) {
		return priceMapper.updateByPrimaryKey(record);
	}

	
	
	
	
	
}
